package com.example.k12.bean

import com.example.k12.utlis.AppConfig

data class OrderRes(
    var balanceAfter: Double = 0.0,
    val classesId: String? = null,
    val classesName: String? = null,
    val createTime: Long = System.currentTimeMillis(),
    val createUserId: String? = null,
    val deviceId: Int = AppConfig.instance.deviceId.toInt(),
    val gradeId: String? = null,
    val gradeName: String? = null,
    val isDel: Int = 0,
    val mchId: String? = null,
    val modifyTime: Long = System.currentTimeMillis(),
    val modifyUserId: String? = null,
    var orderAmount: Double,
    val orderSource: String? = null,
    /**
     * SUCCESS("SUCCESS","支付成功"),
     * REFUND("REFUND","转入退款"),
     * NOTPAY("NOTPAY","未支付"),
     * CLOSED("CLOSED","已关闭"),
     * REVOKED("REVOKED","已撤销"),
     * USERPAYING("USERPAYING","用户支付中"),
     * PAYERROR("PAYERROR","支付失败"),
     */
    val orderStatus: String? = null,
    val orderTime: Long = System.currentTimeMillis(),
    val orderType: String? = null,
    val orderUuid: String? = null,
    val outOrderNo: String? = null,
    val payTime: Long = System.currentTimeMillis(),
    val payType: String? = null,
    var paymentMode: Int?,
    val schoolId: String? = null,
    val schoolName: String? = null,
    val studentId: String? = null,
    val studentName: String? = null,
    val uuid: String? = null,
    val wxUserId: String? = null
)